<?php
/**
 * Created by PhpStorm.
 * User: BlueIdeaLirui
 * Date: 2019/09/04
 * Time: 14:58
 */

namespace business\elasticsearch\repositories;

use yii\elasticsearch\Query;

class EsQuery extends Query
{
    public function addAggs($name, $options)
    {
        $this->aggregations[$name] = $options;
    }
}
